package dfbz.homework1;

public class Test01 {
    public static void main(String[] args) {
        //new两个对象去调用
        Coder coder=new Coder("马化腾",20);
        Teacher teacher=new Teacher("马云",20);
        coder.eat();
        coder.sleep();
        coder.code();
        System.out.println("---------------");
        teacher.eat();
        teacher.sleep();
        teacher.teach();


    }
}
